<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="div1">1</div>
<script>
    var name = 'jjj';
  var app = {
      name:"kkk",
      getname:function () {
          alert(this.name)
      }
  }
  var user = app.getname;
  console.log(user);
  user();
</script>
</body>
</html>